package com.hr.mapper;

import com.hr.domain.po.PaymentRecord;
import com.hr.domain.query.PaymentRecordPageParams;
import com.hr.domain.vo.PaymentRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 86150
* @description 针对表【payment_record(支付记录表)】的数据库操作Mapper
* @createDate 2025-09-30 08:42:36
* @Entity com.hr.domain.po.PaymentRecord
*/
@Mapper
public interface PaymentRecordMapper {

    /**
     * 分页获取支付记录列表
     * @param queryParams
     * @return paymentRecordList
     */
    List<PaymentRecordVO> getPaymentRecordPageList(PaymentRecordPageParams queryParams);

    /**
     * 更新支付记录状态
     * @param id
     * @param status
     * @return
     */
    @Update("update payment_record set status = #{status} where id = #{id}")
    int updatePaymentRecordStatus(@Param("id") Long id,@Param("status") Integer status);
}




